package com.bc.commoncore.concurrent;

/**
 * 默认code为失败
 */
public class MsgResult {
	
    private int code = -1;
    private String msg = "并行错误";
	private Object data;
	private long exeTime;
	    
    /**
     * 默认code为失败
     */
    public MsgResult(int code, String msg, Object data, long exeTime) {
        this.code = code;
        this.msg = msg;
        this.data = data;
        this.exeTime = exeTime;
    }
	
    public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public long getExeTime() {
		return exeTime;
	}

	public void setExeTime(long exeTime) {
		this.exeTime = exeTime;
	}
}
